package com.yscz.peexcel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 答题表
 *
 * @author achen
 * @create 2021-08-26 14:50
 */
@Data
@ToString
@Accessors(chain = true)
@TableName(value = "t_answer")
public class Answer implements Serializable {

    /**
     * 答题Id
     */
    @TableId(value = "answer_id", type = IdType.AUTO)
    private Long answerId;

    /**
     * 第几题
     */
    @TableField(value = "answer_question_num")
    private Integer answerQuestionNum;


    /**
     * 答案 A、B...
     */
    @TableField(value = "answer_type")
    private String answerType;

    /**
     * 每一道题的答题时长
     */
    @TableField(value = "answer_time")
    private Integer answerTime;

    /**
     * 是否为答题时长异常题 0-是 1-否
     */
    @TableField(value = "answer_exception_time")
    private Integer answerExceptionTime;

    /**
     * 是否为异常题 0-是 1-否
     */
    @TableField(value = "answer_exception")
    private Integer answerException;

    /**
     * 异常表情次数
     */
    @TableField(value = "answer_exception_num")
    private Integer answerExceptionNum;

    /**
     * 异常照片路径 异常照片路径:异常照片分数
     */
    @TableField(value = "image_url")
    private String imageUrl;

    /**
     * 本道题的最高异常值
     */
    @TableField(value = "answer_exception_max_score")
    private Integer answerExceptionMaxScore;

    /**
     * 测试记录id
     */
    @TableField(value = "record_id_fk")
    private Long recordIdFk;

    /**
     * 量表Id
     */
    @TableField(value = "scale_id_fk")
    private Long scaleIdFk;

    /**
     * 试题Id
     */
    @TableField(value = "question_id_fk")
    private Long questionIdFk;

    /**
     * 测试记录uuid（开始测评就生成uuid）
     */
    @TableField(value = "record_uuid_fk")
    private String recordUuidFk;
}
